﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Calendar.ascx.cs" Inherits="Calendar" %>
<%@ Import Namespace="DTO" %>
<script src="<%=Globals.ApplicationPath%>js/amlich.js" type="text/javascript"></script>
<script type="text/javascript">
	showVietCal();
</script>

<table><tr><td>
<script type="text/javascript">
    document.writeln(printSelectedMonth());
</script>
</td></tr></table>
<table align="center" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td align="center">
            <form name="SelectMonth" action="">
            Th&aacute;ng
            <select name="month">
              <option value="1">1
              <option value="2">2
              <option value="3">3
              <option value="4">4
              <option value="5">5
              <option value="6">6
              <option value="7">7
              <option value="8">8
              <option value="9">9
              <option value="10">10
              <option value="11">11
              <option value="12">12

            </select>
        </td>
        <td align="right" valign="middle">
            <input type="button" value="Xem" onClick="javascript:viewMonth(parseInt(month.value), parseInt(year.value));">
        </td>
    </tr>
    <tr>
        <td align="right" valign="middle">           
            N&#x103;m<INPUT NAME="year" size=4 value="2011">
        </td>
        <td>    
            <input type="button" value="Xem" onClick="javascript:viewYear(parseInt(year.value));">
            </form>

            <script type="text/javascript">
	            getSelectedMonth();
	            document.SelectMonth.month.value = currentMonth;
	            document.SelectMonth.year.value = currentYear;
	            function viewMonth(mm, yy) {
		            window.location = window.location.pathname + '?yy='+yy+'&mm='+mm;
	            }
	            function viewYear(yy) {
		            var loc = 'currentyear.html?yy='+yy;
		            var win2702 = window.open(loc, "win2702", "menubar=yes,scrollbars=yes,resizable=yes");
	            }
            </script>
        </td>
    </tr>
</table>